﻿//*********************************************************
//
//    Copyright (c) Microsoft. All rights reserved.
//    This code is licensed under the Microsoft Public License.
//    THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
//    ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
//    IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
//    PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
//
//*********************************************************

using System.Data.Objects;
using System.Data.EntityClient;
using SQLServerCompactEdition.Repository.POCO.Generated;

namespace SQLServerCompactEdition.Repository.DAL.RepositoryDao
{
    public partial class BiwoSampleContainer : ObjectContext
    {
        public const string ConnectionString = "name=BiwoSampleContainer";
        public const string ContainerName = "BiwoSampleContainer";
    
        #region Constructors
    
        public BiwoSampleContainer()
            : base(ConnectionString, ContainerName)
        {
            this.ContextOptions.LazyLoadingEnabled = true;
        }
    
        public BiwoSampleContainer(string connectionString)
            : base(connectionString, ContainerName)
        {
            this.ContextOptions.LazyLoadingEnabled = true;
        }
    
        public BiwoSampleContainer(EntityConnection connection)
            : base(connection, ContainerName)
        {
            this.ContextOptions.LazyLoadingEnabled = true;
        }
    
        #endregion
    
        #region ObjectSet Properties
    
        public ObjectSet<Personne> PersonneSet
        {
            get { return _personneSet  ?? (_personneSet = CreateObjectSet<Personne>("PersonneSet")); }
        }
        private ObjectSet<Personne> _personneSet;

        #endregion

    }
}
